﻿using SYH.Common.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SYH.Domain.Applicaton
{
    /// <summary>
    /// 系统用户
    /// </summary>
    public class SystemUser : BaseEntity
    {
        /// <summary>
        /// 登录名
        /// </summary>
        [StringLength(50)]
        [Unique]
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(50)]
        public string Password { get; set; }

        /// <summary>
        /// 中文名
        /// </summary>
        [StringLength(50)]
        public string ChineseName { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        public Guid RID { get; set; }
        /// <summary>
        /// 分组编码 
        /// </summary>
        public GroupCode GroupCode { get; set; }
    }
}
